.auto-fill-panel {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12), 0 3px 6px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    height: 500px;
    width: 280px;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    user-select: none;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.auto-fill-panel.minimized {
    transform: translateY(-50%) translateX(calc(100% - 40px));
}

.auto-fill-panel .panel-title {
    padding: 12px 16px;
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    border-bottom: 1px solid #edf0f2;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #2c3e50;
    font-size: 15px;
    flex-shrink: 0;
}

.auto-fill-panel .welcome-message {
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #edf0f2;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
    flex-shrink: 0;
}

.auto-fill-panel .welcome-message .author {
    color: #0d6efd;
    font-weight: 500;
}

.auto-fill-panel .panel-title .minimize-button {
    cursor: pointer;
    color: #94a3b8;
    font-size: 18px;
    line-height: 1;
    padding: 4px;
    margin: -4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.auto-fill-panel .panel-footer {
    padding: 12px 16px;
    background: #f8fafc;
    border-top: 1px solid #edf0f2;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.auto-fill-panel .edit-button {
    padding: 8px 16px;
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s ease;
}

.auto-fill-panel .edit-button:hover {
    background: #0b5ed7;
}

.auto-fill-panel .panel-content {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.auto-fill-panel .panel-content::-webkit-scrollbar {
    width: 6px;
}

.auto-fill-panel .panel-content::-webkit-scrollbar-track {
    background: transparent;
}

.auto-fill-panel .panel-content::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 3px;
}

.auto-fill-panel .panel-item {
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
    user-select: none;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auto-fill-panel .panel-item:hover {
    background-color: #f8fafc;
    color: #1e293b;
}

.auto-fill-panel .panel-item.selected {
    background-color: #e0f2fe;
    color: #0369a1;
}

.auto-fill-panel .panel-item:last-child {
    border-bottom: none;
}

.auto-fill-panel .panel-empty {
    padding: 16px;
    color: #94a3b8;
    text-align: center;
    font-style: italic;
    background: #f8fafc;
    border-radius: 6px;
    margin: 12px;
}

.auto-fill-panel .panel-category {
    padding: 8px 16px;
    background: #f8fafc;
    font-weight: 600;
    font-size: 13px;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.auto-fill-panel .panel-category::before {
    content: '▼';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    font-size: 10px;
    transition: transform 0.2s ease;
}

.auto-fill-panel .panel-category.collapsed::before {
    transform: rotate(-90deg);
}

.auto-fill-panel .panel-category:hover {
    background: #f1f5f9;
}

.auto-fill-panel .panel-items-container {
    transition: height 0.2s ease;
    overflow: hidden;
}

.auto-fill-panel .panel-items-container.collapsed {
    height: 0 !important;
} 